package com.eastfair.questionnaire.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.core.base.entity.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @ClassName QuestionConfig
 * @Description TODO
 * @Author yuwx
 * @Date 2021/11/15 11:17
 * @Version 1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DisplayLocationQuestionDTO {
    private Long id;
    @ApiModelProperty(hidden = true)
    private Long flagId;
    @ApiModelProperty(value = "展示问题位置ID")
    @NotNull(message = "不能为空", groups = {SuperEntity.Update.class})
    private Long displayLocationQuestionnaireId;
    @ApiModelProperty(value = "问题ID")
    @NotNull(message = "不能为空", groups = {SuperEntity.Update.class})
    private Long questionId;
    @ApiModelProperty(value = "排序")
    @NotNull(message = "不能为空", groups = {SuperEntity.Update.class})
    private Integer sequence;
    @ApiModelProperty(value = "选择答案数量下限")
    private Integer selectLower;
    @ApiModelProperty(value = "选择答案数量上限")
    private Integer selectUpper;
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    @NotNull(message = "不能为空", groups = {SuperEntity.Update.class})
    private Integer isEnabled;
}
